package com.ashlikun.utils.ui.status.insets;

import static androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP;

import androidx.annotation.IntDef;
import androidx.annotation.RestrictTo;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

/**
 * 作者　　: 李坤
 * 创建时间: 2025/8/7　10:03
 * 邮箱　　：496546144@qq.com
 * <p>
 * 功能介绍：
 */
public final class WindowInsetsCompatSide {
    public static final int LEFT = 1 << 0;
    public static final int TOP = 1 << 1;
    public static final int RIGHT = 1 << 2;
    public static final int BOTTOM = 1 << 3;

    private WindowInsetsCompatSide() {
    }

    @RestrictTo(LIBRARY_GROUP)
    @Retention(RetentionPolicy.SOURCE)
    @IntDef(flag = true, value = {LEFT, TOP, RIGHT, BOTTOM})
    public @interface InsetsSide {
    }

    /**
     * @return all four sides.
     */
    public static @WindowInsetsCompatSide.InsetsSide int all() {
        return LEFT | TOP | RIGHT | BOTTOM;
    }
}